package cn.tedu._07springaop.egaop2;


import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestCart {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext("cn.tedu._07springaop");
        CartServiceImpl bean = context.getBean(CartServiceImpl.class);
        bean.addCart("卡号1");
    }

}
